package com.fafa.yygh.cmn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Sire
 * @version 1.0
 * @date 2022-02-08 15:03
 */
@SpringBootApplication
// 为了使用service里的swagger配置（所以需要组件扫描，本微服务也引入了servcie）
@ComponentScan(basePackages = "com.fafa")
// 注册到Nacos
@EnableDiscoveryClient
// 开启feign（远程服务调用）
@EnableFeignClients(basePackages = "com.fafa")
public class ServiceCmnApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceCmnApplication.class, args);
    }

}